from scrapy.cmdline import execute
import os
import sys
if __name__ == '__main__':
    """
    避免命令行无法debug的事情出现
    """
    sys.path.append(os.path.dirname(os.path.abspath(__file__)))
    execute(['scrapy','crawl','info'])